/*
 * Created on 26.02.2004
 * Local Projects Database
 * Mihai Postelnicu (mihai@ro-gateway.org)
 * (c) 2003 by eRomania Gateway
 */
package ro.gateway.aida.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


/**
 * @author Mihai Postelnicu<p>
 *
 *  e-mail (mihai@ro-gateway.org)<br>
 * (c) 2003 by eRomania Gateway<p>
 */
public class PersonSelectorForm extends ActionForm {
	// --------------------------------------------------------- Instance Variables
	private String name;
	private String keyword;
	private long selectedPerson;
	// --------------------------------------------------------- Methods

	/** 
	 * Method reset
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		name="";
		keyword="";
		selectedPerson=-1;
	}


	/**
	 * @return
	 */
	public String getKeyword() {
		return keyword;
	}

	/**
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param string
	 */
	public void setKeyword(String string) {
		keyword = string;
	}

	/**
	 * @param string
	 */
	public void setName(String string) {
		name = string;
	}

	/**
	 * @return
	 */
	public long getSelectedPerson() {
		return selectedPerson;
	}

	/**
	 * @param l
	 */
	public void setSelectedPerson(long l) {
		selectedPerson = l;
	}

}
